#include "listsheet.h"
SheetCabinet::SheetCabinet(QWidget *parent)
        :QTabWidget(parent)
{
    //Tab 1
    archive = new QWidget;
    addTab(archive, tr("&Archive"));
    showBar = new QToolBar;
    showAll = new QAction(tr("a"),this);
    showBar->addAction(showAll);
    //connect(showAll, SIGNAL(triggered()),this, SLOT(showFiltred(QString)));
    filterLineEdit = new QLineEdit;
    listSheets = new QListWidget;
    charName = new QLineEdit(tr("New characer name"));
    system = new QComboBox;
    createChar = new QPushButton(tr("New"));
    //layout tab 1
    newCharL = new QHBoxLayout;
    newCharL->addWidget(charName);
    newCharL->addWidget(system);
    newCharL->addWidget(createChar);
    archiveL = new QVBoxLayout;
    archiveL->addWidget(showBar);
    archiveL->addWidget(filterLineEdit);
    archiveL->addWidget(listSheets);
    archiveL->addLayout(newCharL);
    archive->setLayout(archiveL);
    //Tab 2
    viewsheet = new QWidget;
    addTab(viewsheet, tr("&Sheet"));
    sheetDisplay=new SheetDisplay;
    sheetL = new QVBoxLayout;
    sheetL->addWidget(sheetDisplay);
    viewsheet->setLayout(sheetL);
    //Tab3
    tools = new QWidget;
    addTab(tools, tr("Tools"));
    toolsL = new QVBoxLayout;
    diceroller = new DiceRoller;
    toolsL->addWidget(diceroller);
    calcsL = new QHBoxLayout;
    calc1 = new Calc;
    calc2 = new Calc;
    calc3 = new Calc;
    calcsL ->addWidget(calc1);
    calcsL ->addWidget(calc2);
    calcsL ->addWidget(calc3);
    toolsL->addLayout(calcsL);
    tools->setLayout(toolsL);
}
/*void SheetCabinet::createActions()
{

}

    QToolBar *showBar;
    QAction *allButton;
    QAction *systemButton;
    QAction *characterButton;
    QAction *campaigninButton;
    QAction *tagButton;
    QAction *modeShowButton;
*/
